package model.vos.reprodutivo;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;

@Entity
@Table(name = "porca")
@PrimaryKeyJoinColumn(name = "id_porca")
public class Porca extends Suino implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 2141378968239919210L;
	private Long id;
	private String nome;

	public Porca() {
		super();
	}

	@Column(name = "id_porca", insertable = false, updatable = false)
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "nome")
	public String getNome() {
		return nome;
	}

	public void setNome(String nome) {
		this.nome = nome;
	}

}
